home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS16.ADF / C / InputHandler / in.DOC < prev    next >
Text File  |  1989-01-27  |  3KB  |  98 lines

  1.  
  2. This describes two programs, "in" and "in1".
  3.  
  4. The program "in" sets up an input handler that traps some keystokes and
  5. converts them into a set of keystrokes that are very useful when using the
  6. program TxEd (editor by Microsmiths). The generated keystrokes are normally
  7. quite difficult to enter if you like to keep your right hand on the mouse
  8. and use the left hand to perform various functions.  
  9.  
  10. Note:  In order to keep the size of the program very small, there is no use
  11. of the functions printf etc.  Rather, an autorequestor is specified.
  12. However, if the intuition.library cannot be opened (very rare) then a
  13. silent death occurs.  I didn't want to make the program twice as big just
  14. to say goodbye in the case you have a totally screwed up system.
  15.  
  16.  
  17. The program defines the following keystrokes:
  18.  
  19.  
  20. 1. quick selection of a "drag" buffer COPYied to the clipboard
  21.  
  22.  
  23.    left alt down -> right Amiga-b    (hold down during text selection)
  24.    left alt up   -> right Amiga-c
  25.  
  26.  
  27. This operation permits a quick copy to the clipboard.  First position the
  28. cursor at the beginning of the text to copy to the clipboard.  Then depress
  29. the left alt key and hold it down.  While it is down, drag select and/or
  30. use the cursor control keys to highlight text.  When all the text is
  31. highlighted, release the left alt key.  This will copy the highlighted text
  32. to the clipboard.  Note:  if the alt key is released with anything else
  33. held down, other than the left mouse button, the copy is not done.  This
  34. can be used to cancel by depressing some key such as the right mouse
  35. button.  
  36.  
  37.  
  38. 2. quick selection of a "drag" buffer CUT to clip
  39.  
  40.  
  41.    left-shift left-alt down -> right Amiga-b (hold down during text selection)  
  42.    left-shift left-alt up   -> right Amiga-c
  43.  
  44.  
  45. This is like the copy operation above, but it does a cut instead.  For a
  46. cut, the shift key may be depressed before or after the alt key.  The left
  47. mouse button may NOT be down when the shift-alt is depressed.  This is to
  48. avoid an accident and permit an easier cancel.  Just don't release the
  49. mouse button.
  50.  
  51. 3. quick insert
  52.  
  53.  
  54.    left-amiga down/up -> right Amiga-i
  55.  
  56. This will do an insert.  It is usually used just after a copy or a cut.
  57. There can be no other keys held down.
  58.  
  59.  
  60. 4. Temporary disable of mapping functions.
  61.  
  62.  
  63.    left-shift right-shift
  64.  
  65. This will toggle on/off all special  mapping.
  66.  
  67.  
  68. 5. Exit of program
  69.  
  70.  
  71.    left-control left-shift right-shift
  72.  
  73. This will exit the program.  The left-control and left-shift must be down
  74. first, then a right-shift down and then up will cause a program exit.
  75.  
  76.  
  77.  
  78. 6. function key mapping:
  79.  
  80. Each of these occurs on the down-stroke of the key, thus permitting a
  81. repeat.
  82.  
  83.  
  84. f1 -> right amiga-d screen down
  85. f2 -> right amiga-u screen up
  86. f3 -> right amiga-t toggle begin/end of file
  87. f6 -> right amiga-f format
  88.  
  89.  
  90. There is also a program "in1" that is quite similar to the sample program
  91. in the rom kernel manual, which I used to dump keystrokes and their hex
  92. values.  Just invoke in1 and as soon as you move the mouse a window will be
  93. created to dump values.  Click outside the window (preferably in no window
  94. at all) if you want to see a dump of keystrokes.  This program will exit
  95. with a f1 keystroke.  Note that it only dumps at most every 1/10'th of a
  96. second so not all events will be traced.
  97.  
  98.